package cn.edu.cdu.farmdeal.service.impl;


import cn.edu.cdu.farmdeal.domain.QqLogin;
import cn.edu.cdu.farmdeal.domain.QqLoginExample;
import cn.edu.cdu.farmdeal.mapper.QqLoginMapper;
import cn.edu.cdu.farmdeal.service.QqLoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author tupeng
 * @date 2019/12/08
 * @Description TODO
 **/
@Service
public class QqLoginImpl implements QqLoginService {
    @Autowired
    private QqLoginMapper qqLoginMapper;

    @Override
    public List<QqLogin> getUserByOpenId(String openId) {
        QqLoginExample qqLoginTestExample=new QqLoginExample();
        qqLoginTestExample.createCriteria().andOpenIdEqualTo(openId);
        List<QqLogin> qqLogins =qqLoginMapper.selectByExample(qqLoginTestExample);
        return qqLogins;
    }
}
